home *** CD-ROM | disk | FTP | other *** search
/ PCGUIA 127 / PC Guia 127.iso / Software / Produtividade / OpenOffice.org 2.0.1 / openofficeorg2.cab / wordml2ooo_page.xsl < prev    next >
Extensible Markup Language  |  2005-09-10  |  22KB  |  375 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3.  
  4.     OpenOffice.org - a multi-platform office productivity suite
  5.  
  6.     $RCSfile: wordml2ooo_page.xsl,v $
  7.  
  8.     $Revision: 1.9 $
  9.  
  10.     last change: $Author: rt $ $Date: 2005/09/08 22:12:29 $
  11.  
  12.     The Contents of this file are made available subject to
  13.     the terms of GNU Lesser General Public License Version 2.1.
  14.  
  15.  
  16.       GNU Lesser General Public License Version 2.1
  17.       =============================================
  18.       Copyright 2005 by Sun Microsystems, Inc.
  19.       901 San Antonio Road, Palo Alto, CA 94303, USA
  20.  
  21.       This library is free software; you can redistribute it and/or
  22.       modify it under the terms of the GNU Lesser General Public
  23.       License version 2.1, as published by the Free Software Foundation.
  24.  
  25.       This library is distributed in the hope that it will be useful,
  26.       but WITHOUT ANY WARRANTY; without even the implied warranty of
  27.       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  28.       Lesser General Public License for more details.
  29.  
  30.       You should have received a copy of the GNU Lesser General Public
  31.       License along with this library; if not, write to the Free Software
  32.       Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  33.       MA  02111-1307  USA
  34.  
  35. -->
  36. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml" xmlns:wx="http://schemas.microsoft.com/office/word/2003/auxHint" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:aml="http://schemas.microsoft.com/aml/2001/core" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" exclude-result-prefixes="w wx aml o dt  v">
  37.     <xsl:template match="w:footnotePr" mode="config">
  38.         <text:notes-configuration text:note-class="footnote" text:citation-style-name="Footnote_20_Symbol">
  39.             <xsl:if test="w:pos">
  40.                 <xsl:choose>
  41.                     <xsl:when test="w:pos/@w:val = 'beneath-text'">
  42.                         <xsl:attribute name="text:footnotes-position">document</xsl:attribute>
  43.                     </xsl:when>
  44.                     <xsl:otherwise>
  45.                         <xsl:attribute name="text:footnotes-position">page</xsl:attribute>
  46.                     </xsl:otherwise>
  47.                 </xsl:choose>
  48.             </xsl:if>
  49.             <xsl:if test="w:numStart">
  50.                 <xsl:choose>
  51.                     <xsl:when test="w:numStart/@w:val - 1 > 0">
  52.                         <xsl:attribute name="text:start-value">
  53.                             <xsl:value-of select="w:numStart/@w:val - 1"/>
  54.                         </xsl:attribute>
  55.                     </xsl:when>
  56.                     <xsl:otherwise>
  57.                         <xsl:attribute name="text:start-value">
  58.                             <xsl:value-of select=" '1' "/>
  59.                         </xsl:attribute>
  60.                     </xsl:otherwise>
  61.                 </xsl:choose>
  62.                 <!--xsl:attribute name="text:start-value"><xsl:value-of select="w:numStart/@w:val - 1"/></xsl:attribute-->
  63.             </xsl:if>
  64.             <xsl:if test="w:numFmt">
  65.                 <xsl:call-template name="convert-number-format">
  66.                     <xsl:with-param name="number-format" select="w:numFmt/@w:val"/>
  67.                 </xsl:call-template>
  68.             </xsl:if>
  69.             <xsl:if test="w:numRestart">
  70.                 <xsl:choose>
  71.                     <xsl:when test="w:numRestart/@w:val = 'continuous'">
  72.                         <xsl:attribute name="text:start-numbering-at">document</xsl:attribute>
  73.                     </xsl:when>
  74.                     <xsl:when test="w:numRestart/@w:val = 'each-sect'">
  75.                         <xsl:attribute name="text:start-numbering-at">chapter</xsl:attribute>
  76.                     </xsl:when>
  77.                     <xsl:otherwise>
  78.                         <xsl:attribute name="text:start-numbering-at">page</xsl:attribute>
  79.                     </xsl:otherwise>
  80.                 </xsl:choose>
  81.             </xsl:if>
  82.             <!--
  83.             <xsl:if test="w:footnote[@w:type = 'continuation-separator']">
  84.                 <text:footnote-continuation-notice-backward>
  85.                     <xsl:value-of select="normalize-space(w:footnote[@w:type = 'continuation-separator'])"/>
  86.                 </text:footnote-continuation-notice-backward>
  87.             </xsl:if>
  88.             <xsl:if test="w:footnote[@w:type = 'continuation-notice']">
  89.                 <text:footnote-continuation-notice-forward>
  90.                     <xsl:value-of select="normalize-space(w:footnote[@w:type = 'continuation-notice'])"/>
  91.                 </text:footnote-continuation-notice-forward>
  92.             </xsl:if>
  93.             -->
  94.         </text:notes-configuration>
  95.     </xsl:template>
  96.     <xsl:template match="w:endnotePr" mode="config">
  97.         <text:notes-configuration text:note-class="endnote" text:citation-style-name="Endnote_20_Symbol">
  98.             <xsl:if test="w:numStart">
  99.                 <xsl:choose>
  100.                     <xsl:when test="(w:numStart/@w:val - 1) > 0">
  101.                         <xsl:attribute name="text:start-value">
  102.                             <xsl:value-of select="w:numStart/@w:val - 1"/>
  103.                         </xsl:attribute>
  104.                     </xsl:when>
  105.                     <xsl:otherwise>
  106.                         <xsl:attribute name="text:start-value">
  107.                             <xsl:value-of select=" '1' "/>
  108.                         </xsl:attribute>
  109.                     </xsl:otherwise>
  110.                 </xsl:choose>
  111.                 <!--xsl:attribute name="text:start-value"><xsl:value-of select="w:numStart/@w:val - 1"/></xsl:attribute -->
  112.             </xsl:if>
  113.             <xsl:if test="w:numFmt">
  114.                 <xsl:call-template name="convert-number-format">
  115.                     <xsl:with-param name="number-format" select="w:numFmt/@w:val"/>
  116.                 </xsl:call-template>
  117.             </xsl:if>
  118.         </text:notes-configuration>
  119.     </xsl:template>
  120.     <xsl:template name="convert-number-format">
  121.         <xsl:param name="number-format"/>
  122.         <xsl:choose>
  123.             <xsl:when test="$number-format = 'decimal' or $number-format = 'decimal-half-width'">
  124.                 <xsl:attribute name="style:num-format">1</xsl:attribute>
  125.             </xsl:when>
  126.             <xsl:when test="$number-format = 'decimal-zero'">
  127.                 <xsl:attribute name="style:num-format">1</xsl:attribute>
  128.                 <xsl:attribute name="style:num-prefix">0</xsl:attribute>
  129.             </xsl:when>
  130.             <xsl:when test="$number-format = 'decimal-enclosed-fullstop'">
  131.                 <xsl:attribute name="style:num-format">1</xsl:attribute>
  132.                 <xsl:attribute name="style:num-prefix">.</xsl:attribute>
  133.             </xsl:when>
  134.             <xsl:when test="$number-format = 'decimal-enclosed-paren'">
  135.                 <xsl:attribute name="style:num-format">1</xsl:attribute>
  136.                 <xsl:attribute name="style:num-prefix">(</xsl:attribute>
  137.                 <xsl:attribute name="style:num-suffix">)</xsl:attribute>
  138.             </xsl:when>
  139.             <xsl:when test="$number-format = 'number-in-dash'">
  140.                 <xsl:attribute name="style:num-format">1</xsl:attribute>
  141.                 <xsl:attribute name="style:num-prefix">-</xsl:attribute>
  142.                 <xsl:attribute name="style:num-suffix">-</xsl:attribute>
  143.             </xsl:when>
  144.             <xsl:when test="$number-format = 'upper-letter'">
  145.                 <xsl:attribute name="style:num-format">A</xsl:attribute>
  146.             </xsl:when>
  147.             <xsl:when test="$number-format = 'lower-letter'">
  148.                 <xsl:attribute name="style:num-format">a</xsl:attribute>
  149.             </xsl:when>
  150.             <xsl:when test="$number-format = 'upper-roman'">
  151.                 <xsl:attribute name="style:num-format">I</xsl:attribute>
  152.             </xsl:when>
  153.             <xsl:when test="$number-format = 'lower-roman'">
  154.                 <xsl:attribute name="style:num-format">i</xsl:attribute>
  155.             </xsl:when>
  156.             <!-- ordinal, cardinal-text, ordinal-text, hex, chicago, bullet, ideograph-zodiac-traditional,
  157.             vietnamese-counting, russian-lower, russian-upper, hindi-vowels, hindi-consonants, hindi-numbers, hindi-counting -->
  158.             <xsl:otherwise>
  159.                 <xsl:attribute name="style:num-format">1</xsl:attribute>
  160.             </xsl:otherwise>
  161.         </xsl:choose>
  162.     </xsl:template>
  163.     <xsl:template match="w:bgPict">
  164.         <xsl:if test="w:background/@w:bgcolor">
  165.             <xsl:attribute name="fo:background-color">
  166.                 <xsl:call-template name="MapConstColor">
  167.                     <xsl:with-param name="color" select="w:background/@w:bgcolor"/>
  168.                 </xsl:call-template>
  169.             </xsl:attribute>
  170.         </xsl:if>
  171.         <xsl:if test="w:background/@w:background">
  172.             <style:background-image>
  173.                 <office:binary-data>
  174.                     <xsl:variable name="the-image" select="key('imagedata',w:background/@w:background)"/>
  175.                     <xsl:value-of select="translate($the-image/text(),' ','' ) "/>
  176.                 </office:binary-data>
  177.             </style:background-image>
  178.         </xsl:if>
  179.     </xsl:template>
  180.     <xsl:template match="w:sectPr" mode="page-layout">
  181.         <style:page-layout>
  182.             <xsl:attribute name="style:name">pm<xsl:number from="/w:wordDocument/w:body" level="any" count="w:sectPr" format="1"/>
  183.             </xsl:attribute>
  184.             <style:page-layout-properties>
  185.             <xsl:call-template name="page-layout-properties"/>
  186.                 <xsl:apply-templates select="/w:wordDocument/w:bgPict"/>
  187.             </style:page-layout-properties>
  188.         <style:header-style>
  189.         <style:header-footer-properties style:dynamic-spacing="true" fo:margin-bottom="0">
  190.            <xsl:attribute name="fo:min-height.value"><xsl:value-of select="concat('(.(twips2cm(?(>($0(-[', w:pgMar/@w:top, '](|[', w:pgMar/@w:header, '][720])))[0])($0)[0]))[cm])')"/></xsl:attribute>
  191.         </style:header-footer-properties>
  192.         </style:header-style>
  193.         </style:page-layout>
  194.     </xsl:template>
  195.     <xsl:template match="w:sectPr" mode="master-page">
  196.         <!-- style:page-layout style:style-->
  197.         <style:master-page>
  198.             <xsl:variable name="master-page-name">
  199.                 <xsl:number count="w:sectPr" from="/w:wordDocument/w:body" level="any" format="1"/>
  200.             </xsl:variable>
  201.             <xsl:attribute name="style:name">Standard<xsl:value-of select="$master-page-name"/>
  202.             </xsl:attribute>
  203.             <xsl:attribute name="style:page-layout-name">
  204.                 <xsl:value-of select="concat('pm', $master-page-name)"/>
  205.             </xsl:attribute>
  206.         <style:header>
  207.         <xsl:apply-templates select="w:hdr/child::*"/>
  208.         </style:header>
  209.         <style:footer>
  210.         <xsl:apply-templates select="w:ftr/child::*"/>
  211.         </style:footer>
  212.             <!-- Headers and footers-->
  213.             <!--
  214.             <style:header-style>
  215.                 <style:header-footer-properties>
  216.                     <xsl:attribute name="fo:min-height"><xsl:call-template name="ConvertMeasure"><xsl:with-param name="value" select="concat(w:pgMar/@w:header,'twip')"/></xsl:call-template>cm</xsl:attribute>
  217.                     <xsl:attribute name="fo:margin-bottom">0.792cm</xsl:attribute>
  218.                     <xsl:attribute name="style:dynamic-spacing">true</xsl:attribute>
  219.                 </style:header-footer-properties>
  220.             </style:header-style>
  221.             <style:footer-style>
  222.                 <style:header-footer-properties>
  223.                     <xsl:attribute name="fo:min-height"><xsl:call-template name="ConvertMeasure"><xsl:with-param name="value" select="concat(w:pgMar/@w:footer,'twip')"/></xsl:call-template>cm</xsl:attribute>
  224.                     <xsl:attribute name="fo:margin-top">0.792cm</xsl:attribute>
  225.                     <xsl:attribute name="style:dynamic-spacing">true</xsl:attribute>
  226.                 </style:header-footer-properties>
  227.             </style:footer-style>
  228.             -->
  229.             <xsl:if test="not(w:titlePg)">
  230.                 <xsl:apply-templates select="w:hdr[@w:type='odd']"/>
  231.                 <xsl:apply-templates select="w:hdr[@w:type='even']"/>
  232.                 <xsl:apply-templates select="w:ftr[@w:type='odd']"/>
  233.                 <xsl:apply-templates select="w:ftr[@w:type='even']"/>
  234.             </xsl:if>
  235.         </style:master-page>
  236.     </xsl:template>
  237.     <xsl:template match="w:hdr">
  238.         <!--
  239.         <xsl:choose>
  240.             <xsl:when test="@w:type = 'odd'">
  241.                 <style:header>
  242.                     <xsl:apply-templates select="wx:pBdrGroup | w:p | w:tbl"/>
  243.                 </style:header>
  244.             </xsl:when>
  245.             <xsl:when test="@w:type = 'even'">
  246.                 <style:header>
  247.                     <xsl:apply-templates select="wx:pBdrGroup | w:p | w:tbl"/>
  248.                 </style:header>
  249.             </xsl:when>
  250.         </xsl:choose>
  251.         -->
  252.     </xsl:template>
  253.     <xsl:template match="w:ftr">
  254.         <!--
  255.         <xsl:choose>
  256.             <xsl:when test="@w:type = 'odd'">
  257.                 <style:footer>
  258.                     <xsl:apply-templates select="wx:pBdrGroup | w:p | w:tbl"/>
  259.                 </style:footer>
  260.             </xsl:when>
  261.             <xsl:when test="@w:type = 'even'">
  262.                 <style:footer-left>
  263.                     <xsl:apply-templates select="wx:pBdrGroup | w:p | w:tbl"/>
  264.                 </style:footer-left>
  265.             </xsl:when>
  266.         </xsl:choose>
  267.         -->
  268.     </xsl:template>
  269.     <xsl:template match="wx:pBdrGroup">
  270.         <xsl:apply-templates select="w:p | w:tbl"/>
  271.     </xsl:template>
  272.     <!-- xsl:template name="convert-number-format">
  273.         <xsl:param name="number-format"/>
  274.         <xsl:choose>
  275.             <xsl:when test="$number-format = 'decimal' or $number-format = 'decimal-half-width'">
  276.                 <xsl:attribute name="style:num-format">1</xsl:attribute>
  277.             </xsl:when>
  278.             <xsl:when test="$number-format = 'decimal-zero'">
  279.                 <xsl:attribute name="style:num-format">1</xsl:attribute>
  280.                 <xsl:attribute name="style:num-prefix">0</xsl:attribute>
  281.             </xsl:when>
  282.             <xsl:when test="$number-format = 'decimal-enclosed-fullstop'">
  283.                 <xsl:attribute name="style:num-format">1</xsl:attribute>
  284.                 <xsl:attribute name="style:num-prefix">.</xsl:attribute>
  285.             </xsl:when>
  286.             <xsl:when test="$number-format = 'decimal-enclosed-paren'">
  287.                 <xsl:attribute name="style:num-format">1</xsl:attribute>
  288.                 <xsl:attribute name="style:num-prefix">(</xsl:attribute>
  289.                 <xsl:attribute name="style:num-suffix">)</xsl:attribute>
  290.             </xsl:when>
  291.             <xsl:when test="$number-format = 'number-in-dash'">
  292.                 <xsl:attribute name="style:num-format">1</xsl:attribute>
  293.                 <xsl:attribute name="style:num-prefix">-</xsl:attribute>
  294.                 <xsl:attribute name="style:num-suffix">-</xsl:attribute>
  295.             </xsl:when>
  296.             <xsl:when test="$number-format = 'upper-letter'">
  297.                 <xsl:attribute name="style:num-format">A</xsl:attribute>
  298.             </xsl:when>
  299.             <xsl:when test="$number-format = 'lower-letter'">
  300.                 <xsl:attribute name="style:num-format">a</xsl:attribute>
  301.             </xsl:when>
  302.             <xsl:when test="$number-format = 'upper-roman'">
  303.                 <xsl:attribute name="style:num-format">I</xsl:attribute>
  304.             </xsl:when>
  305.             <xsl:when test="$number-format = 'lower-roman'">
  306.                 <xsl:attribute name="style:num-format">i</xsl:attribute>
  307.             </xsl:when>
  308.             <xsl:when test="$number-format = 'decimal-full-width' or $number-format = 'decimal-full-width2'">
  309.                 <xsl:attribute name="style:num-format">∩╝æ, ∩╝Æ, ∩╝ô, ...</xsl:attribute>
  310.             </xsl:when>
  311.             <xsl:when test="$number-format = 'decimal-enclosed-circle-chinese' or $number-format = 'decimal-enclosed-circle'">
  312.                 <xsl:attribute name="style:num-format">Γæá, Γæí, Γæó, ...</xsl:attribute>
  313.             </xsl:when>
  314.             <xsl:when test="$number-format = 'ideograph-enclosed-circle'">
  315.                 <xsl:attribute name="style:num-format">Σ╕Ç, Σ║î, Σ╕ë, ...</xsl:attribute>
  316.                 <xsl:attribute name="style:num-prefix">(</xsl:attribute>
  317.                 <xsl:attribute name="style:num-suffix">)</xsl:attribute>
  318.             </xsl:when>
  319.             <xsl:when test="$number-format = 'chinese-counting-thousand' or $number-format = 'ideograph-digital' or $number-format = 'japanese-counting' or $number-format = 'japanese-digital-ten-thousand' or $number-format = 'taiwanese-counting-thousand' or $number-format = 'taiwanese-counting' or $number-format = 'taiwanese-digital' or $number-format = 'chinese-counting' or $number-format = 'korean-digital2' or $number-format = 'chinese-not-impl'">
  320.                 <xsl:attribute name="style:num-format">Σ╕Ç, Σ║î, Σ╕ë, ...</xsl:attribute>
  321.             </xsl:when>
  322.             <xsl:when test="$number-format = 'chinese-legal-simplified'">
  323.                 <xsl:attribute name="style:num-format">σú╣, Φ┤░, σÅü, ...</xsl:attribute>
  324.             </xsl:when>
  325.             <xsl:when test="$number-format = 'ideograph-legal-traditional'">
  326.                 <xsl:attribute name="style:num-format">σú╣, Φ▓│, σÅâ, ...</xsl:attribute>
  327.             </xsl:when>
  328.             <xsl:when test="$number-format = 'ideograph-traditional'">
  329.                 <xsl:attribute name="style:num-format">τö▓, Σ╣Ö, Σ╕Ö, ...</xsl:attribute>
  330.             </xsl:when>
  331.             <xsl:when test="$number-format = 'ideograph-zodiac'">
  332.                 <xsl:attribute name="style:num-format">σ¡É, Σ╕æ, σ»à, ...</xsl:attribute>
  333.             </xsl:when>
  334.             <xsl:when test="$number-format = 'japanese-legal'">
  335.                 <xsl:attribute name="style:num-format">σú▒, σ╝É, σÅé, ...</xsl:attribute>
  336.             </xsl:when>
  337.             <xsl:when test="$number-format = 'aiueo-full-width'">
  338.                 <xsl:attribute name="style:num-format">πéó, πéñ, πéª, ...</xsl:attribute>
  339.             </xsl:when>
  340.             <xsl:when test="$number-format = 'aiueo'">
  341.                 <xsl:attribute name="style:num-format">∩╜▒, ∩╜▓, ∩╜│, ...</xsl:attribute>
  342.             </xsl:when>
  343.             <xsl:when test="$number-format = 'iroha-full-width'">
  344.                 <xsl:attribute name="style:num-format">πéñ, πâ¡, πâÅ, ...</xsl:attribute>
  345.             </xsl:when>
  346.             <xsl:when test="$number-format = 'iroha'">
  347.                 <xsl:attribute name="style:num-format">∩╜▓, ∩╛¢, ∩╛è, ...</xsl:attribute>
  348.             </xsl:when>
  349.             <xsl:when test="$number-format = 'korean-digital' or $number-format = 'korean-counting' or $number-format = 'korean-legal'">
  350.                 <xsl:attribute name="style:num-format">∞¥╝, ∞¥┤, ∞é╝, ...</xsl:attribute>
  351.             </xsl:when>
  352.             <xsl:when test="$number-format = 'chosung'">
  353.                 <xsl:attribute name="style:num-format">πä▒, πä┤, πä╖, ...</xsl:attribute>
  354.             </xsl:when>
  355.             <xsl:when test="$number-format = 'ganada'">
  356.                 <xsl:attribute name="style:num-format">Ω░Ç, δéÿ, δïñ, ...</xsl:attribute>
  357.             </xsl:when>
  358.             <xsl:when test="$number-format = 'arabic-alpha' or $number-format = 'arabic-abjad'">
  359.                 <xsl:attribute name="style:num-format">╪ú, ╪¿, ╪¬, ...</xsl:attribute>
  360.             </xsl:when>
  361.             <xsl:when test="$number-format = 'thai-letters' or $number-format = 'thai-numbers' or $number-format = 'thai-counting'">
  362.                 <xsl:attribute name="style:num-format">α╕ü, α╕é, α╕â, ...</xsl:attribute>
  363.             </xsl:when>
  364.             <xsl:when test="$number-format = 'hebrew-1' or $number-format = 'hebrew-2'">
  365.                 <xsl:attribute name="style:num-format">╫É, ╫æ, ╫Æ, ...</xsl:attribute>
  366.             </xsl:when>
  367.             < ordinal, cardinal-text, ordinal-text, hex, chicago, bullet, ideograph-zodiac-traditional,
  368.             vietnamese-counting, russian-lower, russian-upper, hindi-vowels, hindi-consonants, hindi-numbers, hindi-counting >
  369.             <xsl:otherwise>
  370.                 <xsl:attribute name="style:num-format">Native Numbering</xsl:attribute>
  371.             </xsl:otherwise>
  372.         </xsl:choose>
  373.     </xsl:template -->
  374. </xsl:stylesheet>
  375.